/*
 *  $URL: http://net-monitor-cs530.googlecode.com/svn/trunk/src/edu/cs/networkmonitor/application/TestMain.java $
 *  $Author: joseantony001@gmail.com $
 *  $Date: 2012-12-06 06:45:38 +0000 (Thu, 06 Dec 2012) $
 *  
 *  $Copyright-Start$
 *
 *  Copyright (c) 2012
 *  RedPrairie Corporation
 *  All Rights Reserved
 *
 *  This software is furnished under a corporate license for use on a
 *  single computer system and can be copied (with inclusion of the
 *  above copyright) only for use on such a system.
 *
 *  The information in this document is subject to change without notice
 *  and should not be construed as a commitment by RedPrairie Corporation.
 *
 *  RedPrairie Corporation assumes no responsibility for the use of the
 *  software described in this document on equipment which has not been
 *  supplied or approved by RedPrairie Corporation.
 *
 *  $Copyright-End$
 */

package edu.cs.networkmonitor.application;

import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.attribute.PrintServiceAttributeSet;
import javax.print.attribute.standard.PrinterState;

public class TestMain {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
		PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);

		for(PrintService ps : printServices) {
			PrintServiceAttributeSet printServiceAttributes = ps.getAttributes();
			PrinterState printerState = (PrinterState) printServiceAttributes.get(PrinterState.class);
			System.out.println(printerState);
		}
    }

}
